<?php
/**
 * Created by PhpStorm.
 * User: cephei
 * Date: 2016/5/17
 * Time: 10:45
 */

namespace App\Http\Practice\API;

use App\Http\Practice\Lib\PracticeLib;
use Laravel\Lumen\Routing\Controller;
use Tourmaline\UtilsIOD\Lib\O;

class PracticeAPI extends Controller
{
    public function getPractice1()
    {
        $fileName = PracticeLib::getPractice1();
        return O::get('', 301, ['location' => '/' . $fileName]);
    }

    public function getPractice2()
    {
        $fileName = PracticeLib::getPractice2();
        return O::get('', 301, ['location' => '/' . $fileName]);
    }
}